class BootStrap {

     def init = { servletContext ->
        // pre-populate region data
        if(Region.count() == 0) {
            log.debug("creating dummy regions for testing")
            def region = new Region(name: "California - Central")
            region.save()
            region = new Region(name: "California - Lake Tahoe")
            region.save()
            region = new Region(name: "California - Los Angeles / Ventura / Santa Barbara")
            region.save()
            region = new Region(name: "California - Northern")
            region.save()
            region = new Region(name: "California - Orange County / Inland Empire")
            region.save()
            region = new Region(name: "California - San Diego")
            region.save()

            region = new Region(name: "New York - Hudson Valley")
            region.save()
            region = new Region(name: "New York - Long Island")
            region.save()
            region = new Region(name: "New York - New York City")
            region.save()
            region = new Region(name: "New York - Western / Central / Upstate")
            region.save()

            region = new Region(name: "Washington")
            region.save()

        }
     }
     def destroy = {
     }
} 